﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using Microsoft.Practices.Unity;
using Infrastructure.WpfClient.Composite.Regions.ModalWindow;
using Infrastructure.Aspect.Metadata;

namespace Skynet.C2SModule.Views.CreateAuthor
{
    /// <summary>
    /// Interaction logic for CreateUserView.xaml
    /// </summary>
    [ViewMetadata(Titulo="Create Author")]
    [ModalWindowsInfo(resizemode:ResizeMode.CanResize)]
    public partial class CreateAuthorView : UserControl, ICreateAuthorView
    {
        //private CreateAuthorPresenter _Presenter;
        //[Dependency]
        //public CreateAuthorPresenter Presenter
        //{
        //    get { return _Presenter; }
        //    set { 
        //        _Presenter = value;
        //        _Presenter.View = this;
        //        this.DataContext = _Presenter;
        //    }
        //}
        


        
        public string Title
        {
            get { return (string)GetValue(TitleProperty); }
            set { SetValue(TitleProperty, value); }
        }
        // Using a DependencyProperty as the backing store for Title.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty TitleProperty =
            DependencyProperty.Register("Title", typeof(string), typeof(CreateAuthorView), new UIPropertyMetadata("Create User"));

        
        
        public CreateAuthorView()
        {
            InitializeComponent();
        }

        private void btnSave_Click(object sender, RoutedEventArgs e)
        {   
          //  this.Presenter.Save();  
        }

        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
          //  this.Presenter.OnViewReady();
        }

        private void bntClose_Click(object sender, RoutedEventArgs e)
        {
           // this.Presenter.OnViewClose();

        }
    }
}
